package com.ztx.service;

import com.ztx.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ztx.pojo.dto.UserDto;

import java.util.List;

/**
* @author ztx
* @description 针对表【user】的数据库操作Service
* @createDate 2023-10-25 19:22:37
*/
public interface UserService extends IService<User> {
    User login(String username,String password);

    UserDto saveWithRoles(UserDto addUserDto);

    List<UserDto> listUserDto();

    void deleteWithRoles(Long id);

    UserDto getByIdWithRoles(Long userId);

    void updateWithRoles(UserDto userDto);
}
